// components/navbar/navbar.ts
Component({
  /**
   * 组件的属性列表
   */
  properties: {},

  /**
   * 组件的初始数据
   */
  data: {
    statusBarHeight: "",
    navBarHeight: "",
  },

  /**
   * 组件的方法列表
   */
  methods: {
    back() {
      wx.navigateBack()
    },
  },
  lifetimes: {
    attached: function () {
      this.setData({
        statusBarHeight: wx.getStorageSync("statusBarHeight"),
        navBarHeight: wx.getStorageSync("navBarHeight"),
      })
    },
  },
  pageLifetimes: {
    show: function () {},
  },
})
